import request from '@/utils/request'

// 查询订单发货信息列表
export function listDeliver(query) {
  return request({
    url: '/prod-api/order/deliver/list',
    method: 'get',
    params: query
  })
}

// 查询订单发货信息详细
export function getDeliver(deliverUid) {
  return request({
    url: '/prod-api/order/deliver/' + deliverUid,
    method: 'get'
  })
}

// 新增订单发货信息
export function addDeliver(data) {
  return request({
    url: '/prod-api/order/deliver',
    method: 'post',
    data: data
  })
}

// 修改订单发货信息
export function updateDeliver(data) {
  return request({
    url: '/prod-api/order/deliver',
    method: 'put',
    data: data
  })
}

// 删除订单发货信息
export function delDeliver(deliverUid) {
  return request({
    url: '/prod-api/order/deliver/' + deliverUid,
    method: 'delete'
  })
}
